package com.ykt.model;

import com.jfinal.plugin.activerecord.Page;
import com.ykt.interceptor.Seach;

/**
 * 会员类别折扣表 
 * @author tianjun
 *
 */
public class CustomerType extends SeachModel<CustomerType>{
	private static final long serialVersionUID = 1L;
	public static final CustomerType dao = new CustomerType();
	@Override
	public Page<CustomerType> paginate(int pageNumber, int rows, Seach seach) {
		return super.paginateHasShop(pageNumber, rows, seach);
	}
	//得到商户
	public Shop getShop(){
		return Shop.dao.findById(getInt("shop_id"));
	}
}
